﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace MagicFight
{
    public class Gratitude : Magic
    {
        int HPgain = Def.GratitudeDef.HPgain;

        public Gratitude(Character caster)
            : base(caster, Def.GratitudeDef.N) { }

        public override void Effect(GameTime gameTime)
        {
            foreach (Character c in ps.characters)
            {
                int a = c.GainHP(HPgain);
                if (a >= 0) ps.effectsManager.Add(new FloatingText(c.position, a.ToString(), Color.Green));
            }
            alive = false;
        }
    }
}
